<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" MasterPageFile="~/MasterPageWithTables.master" Title="Large TextHome Page" %>

<%@ Register Src="~/DashboardControls/DashboardPlaceHolder.ascx" TagName="DashboardPlaceHolder"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <script type="text/javascript" language="javascript">

    function setScroll(newPosition)
    {
       document.getElementById("HiddenScrollPositionValue").value=newPosition;
    }
    
       function getScroll(dashDiv, newPosition)
    {
       for (i=0;i<30;i++)
          {
          if (newPosition-getScrollTop(dashDiv)>300)
                   setScrollTop(dashDiv,getScrollTop(dashDiv)+300);
          
           if (newPosition-getScrollTop(dashDiv)<-300)
                   setScrollTop(dashDiv,getScrollTop(dashDiv)-300);
          }
         
         setScrollTop(dashDiv,newPosition);
        document.getElementById("HiddenScrollPositionValue").value=newPosition;
        
    }
    
    function getScrollTop(dashDiv)
    {
       try
       {
          return document.getElementById(dashDiv).scrollTop;
       }
       catch(e)
       {
          return document.getElementById(dashDiv).pageYOffset;
       }
    }
    
    function setScrollTop(dashDiv,newPosition)
    {
       try
       {
          document.getElementById(dashDiv).scrollTop=newPosition;
       }
       catch(e)
       {
          document.getElementById(dashDiv).pageYOffset=newPosition;
       }
    }
    
    function setScrollById(dashDiv)
    {
    var newposition=0;
    try
         {
          newposition=document.getElementById(dashDiv).scrollTop;
         }
     catch(e)
         {
          newposition=document.getElementById(dashDiv).pageYOffset; 
         }
         
       document.getElementById("HiddenScrollPositionValue").value=newposition;
    }
    
    
    </script>



    <table width="965px" border="0">
    <tr><td style="width:965px;height:0px; visibility:collapse;" colspan="2" align="left" valign="bottom">
          <asp:Literal ID="WelcomeLiteral" runat="server"></asp:Literal>
    </td></tr>
    <tr><td style="width:965px;height:10px;" colspan="2" align="left" valign="middle"></td></tr>
    <tr><td width="289px" valign="top" align="center">
    <table border="0" cellpadding="0" cellspacing="0" bgcolor="#949FB1" style="width:240px;">
    <tr><td valign="top" align="left" style="height:9px;"><img id="LeftCornerImage" runat="server" src="../images/cornerLeft.gif" alt=""  /></td>
    <td style="border-top:1px solid; border-color:#21334B;width:222px; height:9px;"><img id="Img1" runat="server" src="../images/1x1.gif" alt=""  /></td>
    <td valign="top" align="right"> <img id="RightCornerImage" runat="server" src="../images/cornerRight.gif" alt="" /></td>
    </tr><tr>
    <td style="border-left:1px solid; border-color:#21334B;width:9px;height:9px;">&nbsp;</td>
    <td align="left" valign="top" style="border-color:#21334B;width:222px;">
    <span id="QuickLinksSpan" runat="server" style="color: #21334B; 
            font-family: Arial, MS Sans Serif, Verdana, Helvetica, Sans-Serif; 
            font-size: 1.0em; font-weight: bold; border-bottom:1px solid; border-color: #21334B;position:relative;left:0px;">Quick Links</span></td>
    <td style="border-right:1px solid; border-color:#21334B;width:9px;">&nbsp;</td>
    </tr><tr>
    <td align="left" colspan="3" valign="top" style="background: url('../images/gradient3.jpg') repeat-x 0% 0%; border:1px solid; border-color:#21334B; background-color:White; "  >
           <asp:Repeater ID="QuickLinksRepeater" runat="server">
           <HeaderTemplate><table border="0" cellpadding="0" cellspacing="0"><tr style="height:10px;"><td></td></tr></HeaderTemplate>
           <ItemTemplate> 
               <tr><td style="width:20px;"></td><td align="left"><asp:HyperLink runat="server" CssClass="homeQuickLinksSmall" ID="QuickLinksSmallHyperLink" NavigateUrl='<%# Eval("NavigateURL") %>'><%# GetDisplayName(Eval("Title")) %></asp:HyperLink></td></tr>
           </ItemTemplate>
           <FooterTemplate><tr style="height:10px;"><td></td></tr></table></FooterTemplate>
        </asp:Repeater>
       </td>
       </tr></table>
   </td><td width="676px">
    <div  id="DashboardDiv" runat="server"  style="width:676px; height:350px; overflow:auto;">    
     <asp:Repeater ID="DashBoardRepeater" runat="server">
         <ItemTemplate>
            <div style="width:606px;"> 
                <asp:Panel runat="server" ID="DashboardItemPanel"></asp:Panel>
            </div>
          </ItemTemplate>
        </asp:Repeater>
    </div>
    </td></tr></table>
   
     
    <input type="hidden" id="HiddenScrollPositionValue" name="HiddenScrollPositionValue" value="0" />
     

</asp:Content>
